package com.smartrobot.smartrobot.view;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.RadioButton;

/**
 * Created by Administrator on 2015/1/6.
 */
public class RadioButtonCustom extends RadioButton{
    public RadioButtonCustom(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }
    public RadioButtonCustom(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }


    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public RadioButtonCustom(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        init();
    }

  public void init(){
//      Drawable drawables[] = getCompoundDrawables();
//      drawables[1].setBounds(1,1,30,30);
//      setCompoundDrawables(drawables[0],drawables[1],drawables[2],drawables[3]);
  }


}
